package com.ljl.springboot.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ljl.springboot.entity.User;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<User> {
//    @Select("SELECT * FROM gl_user")
//    List<User> findAll();
//
//    @Insert("INSERT INTO gl_user(username,password,nick_name,age,sex,address) " +
//            "VALUES(#{username},#{password},#{nick_name},#{age},#{sex},#{address})")
//    int insert(User user);
//
//
//    int update(User user);
//
//    @Delete("delete from gl_user where id = #{id}")
//    Integer deleteByid(@Param("id") Integer id);
//
//    @Select("select * from gl_user where username like #{username} limit #{pageNum} ,#{pageSize}")
//    List<User> selectPage(Integer pageNum, Integer pageSize, String username);
//
//    @Select("select count(*) from gl_user where username like concat('%',#{username},'%')")
//    Integer selectTotal(String username);
}
